/*******************************************************************************
 * CopyRight (c) 2020 
 *
 * \file    io_buffer.c
 * \brief   get format file from buffer
 * \author  ZhangJing
 * \version 1.0.0
 * \date    2020-07-08
 *
 * -----------------------------------------------------------------------------
 * Modified history：
 * <Date>       | <Version> | <Author>  | <Describe>
 * 2020-07-08   | v1.0.0    | ZhangJing | Create file
 * -----------------------------------------------------------------------------
 ******************************************************************************/

#include "publicdef.h"
#include "print_ctrl.h"
#include "format.h"

#define IO_BUFFER_MAXSIZE (1024 * 16)

static unsigned char buffer[IO_BUFFER_MAXSIZE];

int buffer_io_open(struct IOContext *h, const char *name, char *flags)
{

}

int buffer_io_read(struct IOContext *h, void *buf, unsigned int size)
{

}

int buffer_io_write(struct IOContext *h, const unsigned char *buf, int size)
{

}

long buffer_io_seek(struct IOContext *h, long pos, int whence)
{

}
int buffer_io_close(struct IOContext *h)
{

}

long buffer_io_get_len(struct IOContext *h)
{

}

long buffer_io_tell(struct IOContext *h)
{

}

IOContext io_buffer = {
    NULL, buffer, IO_BUFFER_MAXSIZE, buffer, buffer, 0, 0,
    0, NULL,
    buffer_io_open, buffer_io_read, buffer_io_write,
    buffer_io_seek, buffer_io_close, buffer_io_get_len, buffer_io_tell
};
